home *** CD-ROM | disk | FTP | other *** search
/ Micro Dingo Especial Manga 1 / Micro Dingo Especial Manga 01 CD.iso / cd dingo / dingosexo / hentai / juegos / 06.swf / scripts / DefineButton2_83 / BUTTONCONDACTION on(release).as
Text File  |  2003-01-22  |  2KB  |  62 lines

  1. on(release){
  2.    ymover = "0";
  3.    xmover = "0";
  4.    if(eval("_level0:ylibre") == yactual)
  5.    {
  6.       if(xactual == "1")
  7.       {
  8.          if(eval("_level0:xlibre") == xactual + "1")
  9.          {
  10.             xmover = "1";
  11.          }
  12.       }
  13.       else if(xactual == "4")
  14.       {
  15.          if(eval("_level0:xlibre") == xactual - "1")
  16.          {
  17.             xmover = "1";
  18.          }
  19.       }
  20.       else if(eval("_level0:xlibre") == xactual + "1" or eval("_level0:xlibre") == xactual - "1")
  21.       {
  22.          xmover = "1";
  23.       }
  24.    }
  25.    if(eval("_level0:xlibre") == xactual)
  26.    {
  27.       if(yactual == "1")
  28.       {
  29.          if(eval("_level0:ylibre") == yactual + "1")
  30.          {
  31.             ymover = "1";
  32.          }
  33.       }
  34.       else if(yactual == "4")
  35.       {
  36.          if(eval("_level0:ylibre") == yactual - "1")
  37.          {
  38.             ymover = "1";
  39.          }
  40.       }
  41.       else if(eval("_level0:ylibre") == yactual + "1" or eval("_level0:ylibre") == yactual - "1")
  42.       {
  43.          ymover = "1";
  44.       }
  45.    }
  46.    if(xmover == "1" or ymover == "1")
  47.    {
  48.       xinter = eval("_level0:xlibre");
  49.       yinter = eval("_level0:ylibre");
  50.       set("_level0:xlibre",xactual);
  51.       set("_level0:ylibre",yactual);
  52.       xactual = xinter;
  53.       yactual = yinter;
  54.       xpos = "200" + (xactual - "1") * "63";
  55.       ypos = "88" + (yactual - "1") * "63";
  56.       _X = xpos;
  57.       _Y = ypos;
  58.       call("_level0:movimiento");
  59.    }
  60.    call("_level0:comprueba_tablero");
  61. }
  62.